@echo off
:ask
SET /P ANSWER=Do you want to Refresh the database or launch the development server? (refresh/launch):
if /i {%ANSWER%}=={refresh} (goto :sure)
if /i {%ANSWER%}=={launch} (goto :launch)
goto :ask

:sure
SET /P ANSWER=Are you sure? (yes/no):
if /i {%ANSWER%}=={yes} (goto :refresh)
if /i {%ANSWER%}=={no} (goto :done)
goto :sure

:refresh
echo PurgeDB started.
echo Deleting database
del database
echo Recreating database:
\django\Python26\python manage.py syncdb
echo done.

:next
SET /P ANSWER=Do you want to launch the server now? (yes/no):
if /i {%ANSWER%}=={yes} (goto :launch)
if /i {%ANSWER%}=={no} (goto :done)
goto :next

:launch
launcher.bat
pause>nul

:done
echo "done."
exit /b 1